package io.agilefast;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;


/**
 * @author OHY
 */
//@SpringBootApplication(exclude = {
//		DruidDataSourceAutoConfigure.class,
//		DataSourceAutoConfiguration.class,
//		MybatisPlusAutoConfiguration.class,
//})
@SpringBootApplication
@MapperScan(basePackages = {"io.agilefast.modules.*.dao",
		"io.agilefast.flowable.dao",
		"io.agilefast.basic.dao",
		"io.agilefast.basic.base.basic.dao"})
public class CustomerApiApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		SpringApplication.run(CustomerApiApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(CustomerApiApplication.class);
	}
}
